
namespace NetDns
{
	/// <summary>
	/// A NULL Resource Record (RR) (RFC1035 3.3.10)
	/// </summary>
	public class Null : IResourceRecord
	{
        public int RecordType { get { return 10; } }
        public IResourceRecord Parse(Pointer pointer, int length)
        {
            return new Null(pointer, length);
        }

		private readonly byte[] data;

		public byte[] Data { get { return data; } }

		/// <summary>
		/// Constructs a NS record by reading bytes from a return message
		/// </summary>
		/// <param name="pointer">A logical pointer to the bytes holding the record</param>
		/// <param name="length"></param>
		internal Null(Pointer pointer, int length)
		{
			data = pointer.ReadBytes(length);
		}

		public override string ToString()
		{
            return "NULL data record";
		}
	}
}